Ext.define('BM.store.TreeGoods', {
    extend: 'Ext.data.TreeStore',
    proxy: {
            type: 'ajax',
            //url: 'data/goodsTree.json'
            url:'../goodsItem.do?method=goodsTree'
        },
    root: {
            text: 'goodsItem',
            id: '0',
            expanded: true
     },
     folderSort: true,
     sorters: [{
           property: 'id',
           direction: 'ASC'
     }]
});